#version 330 core
// vim: set filetype=cpp :vim

uniform vec4 color;
uniform sampler2D tex;
in vec2 texcoord;
out vec4 fColor;

void main(void) {
	vec4 color = texture(tex,vec2(1-texcoord.x,1-texcoord.y));
	if(color.r<0.0000001)
		discard;
	fColor=vec4(color.xyz*color.a,color.a);
}

